﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace L4View.BusinessModel
{
    using Infrastructure;

    public abstract class MessageParser : IParser
    {
        protected IMessageHandler Sink
        {
            get;
            private set;
        }

        public void AssignMessageSink(IMessageHandler sink)
        {
            if (sink == null)
                throw new ArgumentNullException("sink");

            Sink = sink;
        }

        public abstract void Parse(string text);
    }
}
